package cn.xiaolang.function.design_pattern.object_adapter;

/**
 * 房间里提供USB插座
 *
 * @author Dean
 * @date 2021-12-23
 */
public class Home {

    private USBPort usbSocket;

    public Home() {
    }

    public Home(USBPort usbSocket) {
        this.usbSocket = usbSocket;
    }

    public USBPort getUsbSocket() {
        return usbSocket;
    }

    public void setUsbSocket(USBPort usbSocket) {
        this.usbSocket = usbSocket;
    }

    public void charge() {
        System.out.print("usb接口充电功能。。。");
        usbSocket.usbConnection();
        System.out.println();
    }
}
